package com.example.springbootdemo.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Repository;

@TableName("users_table")
@Repository
public class User {

    @TableId(type = IdType.AUTO)
    private int customerId;
    private String customerName;
    private String customerNickname;
    private String customerPhone;
    private String customerIdentification;
    private String customerAddress;
    private String customerPassword;
    private String customerCountry;

    public int getCustomerId() {
        return customerId;
    }

    public void setCustomerId(int customerId) {
        this.customerId = customerId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerNickname() {
        return customerNickname;
    }

    public void setCustomerNickname(String customerNickname) {
        this.customerNickname = customerNickname;
    }

    public String getCustomerPhone() {
        return customerPhone;
    }

    public void setCustomerPhone(String customerPhone) {
        this.customerPhone = customerPhone;
    }

    public String getCustomerIdentification() {
        return customerIdentification;
    }

    public void setCustomerIdentification(String customerIdentification) {
        this.customerIdentification = customerIdentification;
    }

    public String getCustomerAddress() {
        return customerAddress;
    }

    public void setCustomerAddress(String customerAddress) {
        this.customerAddress = customerAddress;
    }

    public String getCustomerPassword() {
        return customerPassword;
    }

    public void setCustomerPassword(String customerPassword) {
        this.customerPassword = customerPassword;
    }

    public String getCustomerCountry() {
        return customerCountry;
    }

    public void setCustomerCountry(String customerCountry) {
        this.customerCountry = customerCountry;
    }


    public User(String customerName, String customerNickname, String customerPhone, String customerIdentification, String customerAddress, String customerPassword, String customerCountry) {
        this.customerName = customerName;
        this.customerNickname = customerNickname;
        this.customerPhone = customerPhone;
        this.customerIdentification = customerIdentification;
        this.customerAddress = customerAddress;
        this.customerPassword = customerPassword;
        this.customerCountry = customerCountry;
    }

    public User(int customerId, String customerName, String customerNickname, String customerPhone, String customerIdentification, String customerAddress, String customerPassword, String customerCountry) {
        this.customerId = customerId;
        this.customerName = customerName;
        this.customerNickname = customerNickname;
        this.customerPhone = customerPhone;
        this.customerIdentification = customerIdentification;
        this.customerAddress = customerAddress;
        this.customerPassword = customerPassword;
        this.customerCountry = customerCountry;
    }

    public User() {
    }

    @Override
    public String toString() {
        return "User{" +
                "customerId=" + customerId +
                ", customerName='" + customerName + '\'' +
                ", customerNickname='" + customerNickname + '\'' +
                ", customerPhone='" + customerPhone + '\'' +
                ", customerIdentification='" + customerIdentification + '\'' +
                ", customerAddress='" + customerAddress + '\'' +
                ", customerPassword='" + customerPassword + '\'' +
                ", customerCountry='" + customerCountry + '\'' +
                '}';
    }

}
